/**
 * 关卡定义表
 */
class CustomsTpl {
    private static _instance:CustomsTpl;
    private customsData:any;

    constructor()
    {
        this.customsData = JsonUtil.getData("customsDefine_json");
    }
    
    public static instance():CustomsTpl
    {
        if(!this._instance)
        {
            this._instance = new CustomsTpl();
        }
        return this._instance;
    }

    public getDataById(id)
    {
        let data = this.customsData[id];
        if(data)
        {
            return data;
        }
        LogUtil.error('Dont exist id in the customs define json: ' + id);
        return null;
    }
}